<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "lol_heros".
 *
 * @property string $id 主键
 * @property string $name 英雄英文名
 * @property string $name_cn 英雄中文名
 * @property string $title_name 英雄绰号
 * @property string $tags 英雄职业
 * @property string $info 英雄信息
 * @property resource $img 头像
 * @property string $extend
 */
class LolHeros extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'lol_heros';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['img', 'extend'], 'string'],
            [['name', 'name_cn', 'title_name', 'tags', 'info'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('model-lolheros', '主键'),
            'name' => Yii::t('model-lolheros', '英雄英文名'),
            'name_cn' => Yii::t('model-lolheros', '英雄中文名'),
            'title_name' => Yii::t('model-lolheros', '英雄绰号'),
            'tags' => Yii::t('model-lolheros', '英雄职业'),
            'info' => Yii::t('model-lolheros', '英雄信息'),
            'img' => Yii::t('model-lolheros', '头像'),
            'extend' => Yii::t('model-lolheros', 'Extend'),
        ];
    }
}
